package com.baizhi.controller;

import com.baizhi.entity.Clazz;
import com.baizhi.service.ClazzService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequestMapping("/clazz")
public class ClazzController {
    private ClazzService cs;
    @RequestMapping("selectAll")
    @ResponseBody
    public List<Clazz> selectAll(){
        return cs.selectAll();
    }

    public ClazzService getCs() {
            return cs;
    }

    public void setCs(ClazzService cs) {
        this.cs = cs;
    }
}
